import http from '@/utils/axios';



export function checktype(){
    return http.post('/api/business/typeall');
}

export function create(addform){
    console.log(addform);
    return http.post('/api/business/addgoods',addform);
}

export function refreshGoods(StoreId){
    return http.post('/api/business/checkgoods',{
        StoreId: StoreId
    });
}
export function addedGoods(goodsId){
    return http.post('/api/business/addedgoods',{
        goodsId: goodsId
    });
}
export function unshelveGoods(goodsId){
    return http.post('/api/business/unshelvegoods',{
        goodsId: goodsId
    });
}
export function deleteGoods(goodsId){
    return http.post('/api/business/deletegoods',{
        goodsId: goodsId
    });
}
export function alterGoods(addform){
    console.log(addform);
    return http.post('/api/business/altergoods',addform);
}